#ifndef TABSCREEN_H
#define TABSCREEN_H

#include <QScrollArea>
#include <QHBoxLayout>
#include <QList>

class QString;
class WhaleTabBase;

class TabScreen : public QScrollArea  {
    Q_OBJECT

    public:
        TabScreen( QWidget * parent = 0 );
        QLayout * tabsLayout();
        QList< WhaleTabBase * > activeTabs();

    public slots:
        void addTab( WhaleTabBase * tab );
        void scrollToEnd();
        void tabClosed( WhaleTabBase * tab );

    private:
        QHBoxLayout * mTabsLayout;
        WhaleTabBase * mLastTab;
};

#endif
